package com.authine.cloudpivot.ext.vo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.Id;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * Created by Kris Wang on 2018/5/25.
 */
@NoArgsConstructor
@AllArgsConstructor
@Entity
@Data
public class TransportVo implements Serializable {

    private static final long serialVersionUID = 3704394439791269185L;
    @Id
    @JsonIgnore
    private String id;
    @ApiModelProperty("订单商品ID")
    private String orderGoodsId;
    //运单号
    @ApiModelProperty("物流单号")
    private String waybill;
    @ApiModelProperty("物流公司")
    private String logistics;
    @ApiModelProperty("发货数量")
    private BigDecimal num;
    @ApiModelProperty("发货时间")
    private Date time;
    @ApiModelProperty("商品名称")
    private String name;
    @ApiModelProperty("物料编号")
    private String sku;
    @ApiModelProperty("公司")
    private String company;
    @ApiModelProperty("含税单价")
    private BigDecimal price;
    @ApiModelProperty("商品含税")
    private BigDecimal amount;


    public TransportVo(String orderGoodsId, String waybill, String logistics, BigDecimal num, Date time) {
        this.orderGoodsId = orderGoodsId;
        this.waybill = waybill;
        this.logistics = logistics;
        this.num = num;
        this.time = time;
    }



    @Override
    public String toString() {
        return "TransportVo{" +
                "orderGoodsId=" + orderGoodsId +
                ", waybill='" + waybill + '\'' +
                ", logistics='" + logistics + '\'' +
                ", num=" + num +
                ", time=" + time +
                ", name='" + name + '\'' +
                ", sku='" + sku + '\'' +
                ", company='" + company + '\'' +
                ", price=" + price +
                ", amount=" + amount +
                '}';
    }
}
